projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c314907
)
(eshell-lisp-command): Do not late-convert string arguments to numbers
author
John Wiegley
<johnw@newartisans.com>
Fri, 14 Nov 2003 10:59:32 +0000
(10:59 +0000)
committer
John Wiegley
<johnw@newartisans.com>
Fri, 14 Nov 2003 10:59:32 +0000
(10:59 +0000)
unless the whole argument was seen as a number.
lisp/eshell/esh-cmd.el
patch
|
blob
|
history
diff --git
a/lisp/eshell/esh-cmd.el
b/lisp/eshell/esh-cmd.el
index 54f4d6c7739eab013768aee43b28108bdf317594..e944020b1edcc1542e3e7f12157d58987204de7e 100644
(file)
--- a/
lisp/eshell/esh-cmd.el
+++ b/
lisp/eshell/esh-cmd.el
@@
-1400,7
+1400,8
@@
messages, and errors."
(let ((arg (car args)))
(if (and (stringp arg)
(> (length arg) 0)
- (get-text-property 0 'number arg))
+ (not (text-property-not-all
+ 0 (length arg) 'number t arg)))
(setcar args (string-to-number arg))))
(setq args (cdr args))))
(eshell-apply object eshell-last-arguments))